$(document).ready(function() {
application=new Application();
	$("#appMessageBar").ajaxStart(function() {
		$("#loadingIcon").show();
		$("#messageBar").text('');
		$("#successIcon").hide();
		$("#errorIcon").hide();
		$("#warningIcon").hide();
	});
	$("#appMessageBar").ajaxSuccess(function(event,xhr,settings) {
		$("#loadingIcon").hide();
	});
	
/*	$("#appMessageBar").ajaxError(function(event,xhr,settings) {
		$("#loadingIcon").hide();
		$("#errorIcon").show();
		alert('xhr.response'+xhr.responseText);
	});
*/
});
